package com.woniuxy01;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-15 9:55
 */
public class Test07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入姓名");
        String name = sc.next();
        System.out.println("输入性别");
//        String gender = sc.next();
        //sc.next()输入字符串
        //charAt(0)获取字符串中的第一个字符
        char gender= sc.next().charAt(0);
        System.out.println("输入年龄");
        int age = sc.nextInt();
        System.out.println("输入成绩");
        double score = sc.nextDouble();
        System.out.println("name=name,age=age,score=score");
        System.out.println("name="+name+",gender"+gender+",age="+age+",score="+score);
    }
}
